package cdu.hjx.project.sys.service;

import cdu.hjx.project.pojo.Dict;
import cdu.hjx.project.pojo.DictDetail;

import java.util.List;

public interface DictService {

    int addDict(Dict dict) throws Exception;

    Dict findDict(String dname) throws Exception;

    int insertDict(Dict dict) throws Exception;

    //List<Dict> dicts() throws Exception;
    List<Dict> dicts() throws Exception;

    //根据字典id查字典信息
    Dict findDictById(Integer id) throws Exception;


    //修改字典信息
    int updateDict(Dict dict) throws Exception;

    //删除字典信息
    int deleteDict(Integer id) throws Exception;

    //查询列表信息
    List<DictDetail> list(String dtype) throws Exception;
}
